gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\LS_SVMlab\lin_kernel.m
function x = lin_kernel(a,b,c) % kernel function for implicit higher dimension mapping, based on % the standard inner-product % % x = lin_kernel(a,b) % % 'a' can only contain one datapoint in a row, 'b' can contain N % datapoints of the same dimension as 'a'. % % see also: % poly_kernel, RBF_kernel, MLP_kernel, trainlssvm, simlssvm % Copyright (c) 2002, KULeuven-ESAT-SCD, License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlab x = zeros(size(b,1),1); for i=1:size(b,1), x(i,1) = a*b(i,:)'; end